<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="rPContractList" title="合同（应付）" actionUrl="purchasingController.do?datagrid"  idField="id"  fit="true" queryMode="group" autoLoadData="false">
   <t:dgCol title="合同状态" field="Fstatus" replace="已审核_1"></t:dgCol>
   <t:dgCol title="合同名称" field="FContractName" ></t:dgCol>
   <t:dgCol title="合同日期" field="FDate"  formatter="yyyy-MM-dd"  isDate="true" query="true" queryMode="group"></t:dgCol>
   <t:dgCol title="合同号" field="FContractNo" query="true"></t:dgCol>
   <t:dgCol title="币别" field="FCurrencyID_DSPName" ></t:dgCol>
   <t:dgCol title="核算项目" field="FCustomer_DSPName" ></t:dgCol>
   
   <t:dgCol title="产品代码" field="FProductID2_DSPName" query="true"></t:dgCol>
   <t:dgCol title="产品名称" field="FItemID40828_DSPName" query="true"></t:dgCol>
   <t:dgCol title="规格型号" field="FItemID40891_DSPName" query="true"></t:dgCol>
   
   <t:dgCol title="计量单位" field="FUnitID_DSPName" ></t:dgCol>
   <t:dgCol title="数量" field="FQuantity" ></t:dgCol>
   <t:dgCol title="不含税单价" field="FPriceFor" ></t:dgCol>
   <t:dgCol title="含税单价" field="FTaxPriceFor" ></t:dgCol>
   <t:dgCol title="总金额" field="FTotalAmountFor" ></t:dgCol>
   <t:dgCol title="实际单价" field="FFactPriceFor" ></t:dgCol>
   <t:dgCol title="价税合计" field="FAmountIncludeTaxFor" ></t:dgCol>
   <t:dgCol title="制单人" field="FBillerID_DSPName" ></t:dgCol>
   <t:dgCol title="审核人" field="FChecker_DSPName" ></t:dgCol>
   <t:dgCol title="审核日期" field="FCheckDate" formatter="yyyy-MM-dd" ></t:dgCol>
   <t:dgCol title="业务员" field="FEmployee_DSPName" ></t:dgCol>
   <t:dgCol title="部门" field="FDepartment_DSPName" ></t:dgCol>
   <t:dgToolBar title="导出"  icon="icon-print"    onclick="export2()"   operationCode="export"></t:dgToolBar>
  </t:datagrid>
  </div>
</div>


<script type="text/javascript" charset="utf-8">
	/*
	 *	excel导出
	 */
	function export2() {
		export1("purchasingController.do?export","rPContractList");
	}
	
</script>

